<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <title>[Theme even readme]even-readme - Never Give Up</title>
  <meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>

<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">


<meta name="author" content="ZhangKQ" /><meta name="description" content="hugo-theme-even A super concise theme for Hugo 该主题移植自 hexo-theme-even 在线预览 Demo Screenshots Installation 1 $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据自己的需求更" /><meta name="keywords" content="Never Give Up, Hugo, theme, even" />






<meta name="generator" content="Hugo 0.92.0 with theme even" />


<link rel="canonical" href="https://blog.nevergiveup.tech/post/demo/even-readme/" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">



<link href="/sass/main.min.b5a744db6de49a86cadafb3b70f555ab443f83c307a483402259e94726b045ff.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.css" integrity="sha256-7TyXnr2YU040zfSP+rEcz29ggW4j56/ujTPwjMzyqFY=" crossorigin="anonymous">


<meta property="og:title" content="[Theme even readme]even-readme" />
<meta property="og:description" content="hugo-theme-even A super concise theme for Hugo 该主题移植自 hexo-theme-even 在线预览 Demo Screenshots Installation 1 $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据自己的需求更" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://blog.nevergiveup.tech/post/demo/even-readme/" /><meta property="article:section" content="post" />
<meta property="article:published_time" content="2014-07-10T01:00:00+08:00" />
<meta property="article:modified_time" content="2022-02-10T16:37:56+08:00" />

<meta itemprop="name" content="[Theme even readme]even-readme">
<meta itemprop="description" content="hugo-theme-even A super concise theme for Hugo 该主题移植自 hexo-theme-even 在线预览 Demo Screenshots Installation 1 $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据自己的需求更"><meta itemprop="datePublished" content="2014-07-10T01:00:00+08:00" />
<meta itemprop="dateModified" content="2022-02-10T16:37:56+08:00" />
<meta itemprop="wordCount" content="660">
<meta itemprop="keywords" content="" /><meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="[Theme even readme]even-readme"/>
<meta name="twitter:description" content="hugo-theme-even A super concise theme for Hugo 该主题移植自 hexo-theme-even 在线预览 Demo Screenshots Installation 1 $ git clone https://github.com/olOwOlo/hugo-theme-even themes/even 重要: 在主题的 exampleSite 目录下有一个 config.toml 文件，将这个 config.toml 文件复制到你的站点目录下，根据自己的需求更"/>

<!--[if lte IE 9]>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/classlist/1.1.20170427/classList.min.js"></script>
<![endif]-->

<!--[if lt IE 9]>
  <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
<![endif]-->

</head>
<body>
  <div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/" class="logo">Never Give Up</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>
<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    <a href="/">
        <li class="mobile-menu-item">主页</li>
      </a><a href="/post/">
        <li class="mobile-menu-item">归档</li>
      </a><a href="/tags/">
        <li class="mobile-menu-item">标签</li>
      </a><a href="/categories/">
        <li class="mobile-menu-item">分类</li>
      </a><a href="/remark/">
        <li class="mobile-menu-item">随言碎语</li>
      </a><a href="/about/">
        <li class="mobile-menu-item">关于</li>
      </a>
  </ul>

  


</nav>

  <div class="container" id="mobile-panel">
    <header id="header" class="header">
        <div class="logo-wrapper">
  <a href="/" class="logo">Never Give Up</a>
</div>





<nav class="site-navbar">
  <ul id="menu" class="menu">
    <li class="menu-item">
        <a class="menu-item-link" href="/">主页</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/post/">归档</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/tags/">标签</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/categories/">分类</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/remark/">随言碎语</a>
      </li><li class="menu-item">
        <a class="menu-item-link" href="/about/">关于</a>
      </li>
  </ul>
</nav>

    </header>

    <main id="main" class="main">
      <div class="content-wrapper">
        <div id="content" class="content">
          <article class="post">
    
    <header class="post-header">
      <h1 class="post-title">[Theme even readme]even-readme</h1>

      <div class="post-meta">
        <span class="post-time"> 2014-07-10 </span>
        
          <span class="more-meta"> 约 660 字 </span>
          <span class="more-meta"> 预计阅读 2 分钟 </span>
        
      </div>
    </header>

    <div class="post-toc" id="post-toc">
  <h2 class="post-toc-title">文章目录</h2>
  <div class="post-toc-content">
    <nav id="TableOfContents">
  <ul>
    <li><a href="#hugo-theme-even">hugo-theme-even</a>
      <ul>
        <li><a href="#screenshots">Screenshots</a></li>
        <li><a href="#installation">Installation</a></li>
        <li><a href="#language-support">Language Support</a></li>
        <li><a href="#favicon">Favicon</a></li>
        <li><a href="#front-matter">Front Matter</a></li>
        <li><a href="#shortcodes">Shortcodes</a></li>
        <li><a href="#theme-color">Theme Color</a></li>
        <li><a href="#update-theme">Update Theme</a></li>
        <li><a href="#license">License</a></li>
        <li><a href="#acknowledgements">Acknowledgements</a></li>
      </ul>
    </li>
  </ul>
</nav>
  </div>
</div>
    <div class="post-content">
      <h1 id="hugo-theme-even">hugo-theme-even</h1>
<p><a href="https://github.com/olOwOlo/hugo-theme-even/contributors"><img src="https://img.shields.io/github/contributors/olOwOlo/hugo-theme-even.svg?colorB=green" alt="GitHub contributors"></a>
<a href="https://github.com/olOwOlo/hugo-theme-even/releases"><img src="https://img.shields.io/github/release/olOwOlo/hugo-theme-even.svg?colorB=green" alt="GitHub release"></a>
<a href="https://github.com/olOwOlo/hugo-theme-even/compare"><img src="https://img.shields.io/github/commits-since/olOwOlo/hugo-theme-even/latest.svg?colorB=green" alt="GitHub commits (since latest release)"></a>
<a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md"><img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="GitHub"></a></p>
<p>A super concise theme for Hugo</p>
<blockquote>
<p>该主题移植自 <a href="https://github.com/ahonn/hexo-theme-even">hexo-theme-even</a></p>
</blockquote>
<p><a href="https://hugo-theme-even.netlify.app">在线预览 Demo</a></p>
<h2 id="screenshots">Screenshots</h2>
<p><img src="https://raw.githubusercontent.com/olOwOlo/hugo-theme-even/master/images/showcase.png" alt="even-showcase"></p>
<h2 id="installation">Installation</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash">$ git clone https://github.com/olOwOlo/hugo-theme-even themes/even
</code></pre></td></tr></table>
</div>
</div><p><strong>重要:</strong> 在主题的 <a href="https://github.com/olOwOlo/hugo-theme-even/tree/master/exampleSite"><code>exampleSite</code></a> 目录下有一个 <a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml"><code>config.toml</code></a> 文件，<strong>将这个 <a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml"><code>config.toml</code></a> 文件复制到你的站点目录下</strong>，根据自己的需求更改即可。</p>
<p><strong>重要:</strong> 本主题用到了 <a href="https://gohugo.io/hugo-pipes/introduction/">Hugo Pipes</a> 功能。如需修改 <code>assets</code> 目录下的文件，请安装 extended 版。</p>
<p><strong>注意:</strong> 对于这个主题，你应该使用 <strong>post</strong> 而不是 <strong>posts</strong>，即 <code>hugo new post/some-content.md</code>。</p>
<h2 id="language-support">Language Support</h2>
<blockquote>
<p>翻译资源在 <a href="https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n"><code>themes/even/i18n/</code></a> 文件夹（内置在主题中），以及站点根目录下的 <code>i18n/</code> 文件夹中。两个文件夹下的翻译资源将会被合并，且根目录下的优先级大于内置于主题中的。</p>
</blockquote>
<p>只需要正确的设置 <a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/exampleSite/config.toml#L3"><code>defaultContentLanguage</code></a> 的值即可使用翻译资源。</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-toml" data-lang="toml"><span class="nx">defaultContentLanguage</span> <span class="p">=</span> <span class="s2">&#34;en&#34;</span>  <span class="c"># en / zh-cn / other...</span>
</code></pre></td></tr></table>
</div>
</div><p>同样也支持其他语言。举例来说，为支持德语，在站点根目录下创建 <code>/i18n/de.yaml</code> 文件。参考 <a href="https://github.com/olOwOlo/hugo-theme-even/tree/master/i18n/en.yaml"><code>en.yaml</code></a> 文件查看如何编写翻译资源。</p>
<p>附：在多语言模式下，当前正被用于渲染网站的语言会被用于匹配翻译资源。</p>
<h2 id="favicon">Favicon</h2>
<p>为了定制 favicon，你需要在站点根目录的 <code>static</code> 文件夹下放置下述<strong>所有</strong>文件，这将覆盖 <a href="https://github.com/olOwOlo/hugo-theme-even/tree/master/static"><code>themes/even/static/</code></a> 文件夹下的那些文件。</p>
<ul>
<li>android-chrome-192x192.png</li>
<li>android-chrome-512x512.png</li>
<li>apple-touch-icon.png</li>
<li>browserconfig.xml</li>
<li>favicon.ico</li>
<li>favicon-16x16.png</li>
<li>favicon-32x32.png</li>
<li>manifest.json</li>
<li>mstile-150x150.png</li>
<li>safari-pinned-tab.svg</li>
</ul>
<p><a href="https://www.google.com/search?q=favicon+generator">favicon generator (Google)</a> 能够帮助你生成这些文件。</p>
<h2 id="front-matter">Front Matter</h2>
<p>你可以通过 front-matter 针对每一篇文章单独进行设置。<a href="https://github.com/olOwOlo/hugo-theme-even/tree/master/archetypes/default.md"><code>themes/even/archetypes/default.md</code></a> 文件陈列了所有可用的参数。将该文件复制到站点根目录的 <code>archetypes</code> 文件夹下将会有所帮助。</p>
<h2 id="shortcodes">Shortcodes</h2>
<p>主题提供了 <code>center</code>,<code> right</code>, <code>left</code>,<code> music</code>, <code>admonition</code> 这些 shortcodes，并支持为内置的 <code>figure</code> 设置 <code>center</code>,<code> right</code>, <code>left</code> 这三种 class 值。点击<a href="https://blog.olowolo.com/example-site/post/shortcodes/">这里</a>查看详细内容。</p>
<h2 id="theme-color">Theme Color</h2>
<p>主题内置了五种颜色 ( Default | Mint Green | Cobalt Blue | Hot Pink | Dark Violet )，你可以通过改变 <a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/assets/sass/_variables.scss#L5-L8"><code>/assets/sass/_variable.scss</code></a> 文件中 <code>$theme-color-config</code> 的值来改变主题的颜色。</p>
<h2 id="update-theme">Update Theme</h2>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="nb">cd</span> ./themes/even/
git pull
</code></pre></td></tr></table>
</div>
</div><p><strong>每当更新此主题时，都应检查 <code>CHANGELOG.md</code> 文件，可能会有一些重大更改。</strong></p>
<h2 id="license">License</h2>
<p>Released under the <a href="https://github.com/olOwOlo/hugo-theme-even/blob/master/LICENSE.md">MIT</a> License.</p>
<h2 id="acknowledgements">Acknowledgements</h2>
<ul>
<li><a href="https://github.com/budparr/gohugo-theme-ananke">ananke</a></li>
<li><a href="https://github.com/ahonn/hexo-theme-even">hexo-theme-even</a></li>
<li><a href="https://github.com/laozhu/hugo-nuo">hugo-nuo</a></li>
</ul>

    </div>

    <div class="post-copyright">
  <p class="copyright-item">
    <span class="item-title">文章作者</span>
    <span class="item-content">ZhangKQ</span>
  </p>
  <p class="copyright-item">
    <span class="item-title">上次更新</span>
    <span class="item-content">
        2022-02-10
        
    </span>
  </p>
  
  <p class="copyright-item">
    <span class="item-title">许可协议</span>
    <span class="item-content">MIT</span>
  </p>
</div>
<div class="post-reward">
  <input type="checkbox" name="reward" id="reward" hidden />
  <label class="reward-button" for="reward">赞赏支持</label>
  <div class="qr-code">
    
    <label class="qr-code-image" for="reward">
        <img class="image" src="/qrcode/wechat-qr-code.jpg">
        <span>微信打赏</span>
      </label>
    <label class="qr-code-image" for="reward">
        <img class="image" src="/qrcode/alipay-qr-code.jpg">
        <span>支付宝打赏</span>
      </label>
  </div>
</div><footer class="post-footer">
      
      <nav class="post-nav">
        <a class="prev" href="/post/other/%E7%AC%94%E8%AE%B0%E6%9C%AC%E8%A7%A6%E6%91%B8%E6%9D%BF/">
            <i class="iconfont icon-left"></i>
            <span class="prev-text nav-default">笔记本触摸板使用说明</span>
            <span class="prev-text nav-mobile">上一篇</span>
          </a>
        <a class="next" href="/post/demo/even-preview/">
            <span class="next-text nav-default">[Theme preview]even主题预览</span>
            <span class="next-text nav-mobile">下一篇</span>
            <i class="iconfont icon-right"></i>
          </a>
      </nav>
    </footer>
  </article>
        </div>
        

  

  

      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="social-links">
      <a href="mailto:wdyxzkq@163.com" class="iconfont icon-email" title="email"></a>
      <a href="https://github.com/dysoso" class="iconfont icon-github" title="github"></a>
      <a href="https://gitee.com/dysoso" class="iconfont icon-gitlab" title="gitlab"></a>
  <a href="https://blog.nevergiveup.tech/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a>
</div>

<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://blog.nevergiveup.tech/">blog.nevergiveup.tech</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a>
  </span>

  

  <span class="copyright-year">
    &copy; 
    2021 - 
    2022<span class="heart"><i class="iconfont icon-heart"></i></span><span><a href="https://beian.miit.gov.cn/">蜀ICP备2021005948号-1</a></span>
  </span>
</div>

    </footer>

    <div class="back-to-top" id="back-to-top">
      <i class="iconfont icon-up"></i>
    </div>
  </div>
  
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/slideout@1.0.1/dist/slideout.min.js" integrity="sha256-t+zJ/g8/KXIJMjSVQdnibt4dlaDxc9zXr/9oNPeWqdg=" crossorigin="anonymous"></script>
  <script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3.1.20/dist/jquery.fancybox.min.js" integrity="sha256-XVLffZaxoWfGUEbdzuLi7pwaUJv1cecsQJQqGLe7axY=" crossorigin="anonymous"></script>



<script type="text/javascript" src="/js/main.min.c99b103c33d1539acf3025e1913697534542c4a5aa5af0ccc20475ed2863603b.js"></script>
  <script type="text/javascript">
    window.MathJax = {
      tex: {
        }
    };
  </script>
  <script async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.5/es5/tex-mml-chtml.js" integrity="sha256-HGLuEfFcsUJGhvB8cQ8nr0gai9EucOOaIxFw7qxmd+w=" crossorigin="anonymous"></script>


<script type="application/javascript">
var doNotTrack = false;
if (!doNotTrack) {
	window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
	ga('create', 'never-give-up', 'auto');
	ga('set', 'anonymizeIp', true);
	ga('send', 'pageview');
}
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>







</body>
</html>
